import scala.collection.mutable.ListBuffer
def new_fun(list:List[Int]):Unit={
  var new_list=new ListBuffer[Int]
  for(i <- list){
    if (i%2==0){
      new_list+=i/2
    }
    else{
      new_list+=i+1
    }
  }
  println("new_list=====>"+new_list)
}

val ll=List(32,43,53,14,5,3,6,75,6,95,2)
new_fun(ll)
